import Vue from 'vue'
import VueRouter from 'vue-router'
import HomeView from '../views/home/HomeView.vue'
// import CityList from '../views/citylist/CityList.vue'
import CityList2 from '../views/citylist2/CityList2.vue'
import Detail from '../views/details/Detail.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'home',
    component: HomeView
  }, 
  {
    path: '/citylist2',
    name: 'citylist2',
    component: CityList2
  },
  {
    path: '/detail',
    name: "detail",
    component: Detail
  }
]

const router = new VueRouter({
  routes
})

export default router
